package com.zc.trendsDispatch.service.impl;

import java.util.List;

import com.zc.trendsDispatch.domain.ChargeStationStrategyHistory;
import com.zc.trendsDispatch.mapper.ChargeStationStrategyHistoryMapper;
import com.zc.trendsDispatch.service.IChargeStationStrategyHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 电站调度历史Service业务层处理
 *
 * @author glb
 * @date 2024-03-05
 */
@Service
public class ChargeStationStrategyHistoryServiceImpl implements IChargeStationStrategyHistoryService
{
    @Autowired
    private ChargeStationStrategyHistoryMapper chargeStationStrategyHistoryMapper;

    /**
     * 查询电站调度历史
     *
     * @param id 电站调度历史主键
     * @return 电站调度历史
     */
    @Override
    public ChargeStationStrategyHistory selectChargeStationStrategyHistoryById(Long id)
    {
        return chargeStationStrategyHistoryMapper.selectChargeStationStrategyHistoryById(id);
    }

    /**
     * 查询电站调度历史列表
     *
     * @param chargeStationStrategyHistory 电站调度历史
     * @return 电站调度历史
     */
    @Override
    public List<ChargeStationStrategyHistory> selectChargeStationStrategyHistoryList(ChargeStationStrategyHistory chargeStationStrategyHistory)
    {
        return chargeStationStrategyHistoryMapper.selectChargeStationStrategyHistoryList(chargeStationStrategyHistory);
    }

    /**
     * 新增电站调度历史
     *
     * @param chargeStationStrategyHistory 电站调度历史
     * @return 结果
     */
    @Override
    public int insertChargeStationStrategyHistory(ChargeStationStrategyHistory chargeStationStrategyHistory)
    {
        return chargeStationStrategyHistoryMapper.insertChargeStationStrategyHistory(chargeStationStrategyHistory);
    }

    /**
     * 修改电站调度历史
     *
     * @param chargeStationStrategyHistory 电站调度历史
     * @return 结果
     */
    @Override
    public int updateChargeStationStrategyHistory(ChargeStationStrategyHistory chargeStationStrategyHistory)
    {
        return chargeStationStrategyHistoryMapper.updateChargeStationStrategyHistory(chargeStationStrategyHistory);
    }

    /**
     * 批量删除电站调度历史
     *
     * @param ids 需要删除的电站调度历史主键
     * @return 结果
     */
    @Override
    public int deleteChargeStationStrategyHistoryByIds(Long[] ids)
    {
        return chargeStationStrategyHistoryMapper.deleteChargeStationStrategyHistoryByIds(ids);
    }

    /**
     * 删除电站调度历史信息
     *
     * @param id 电站调度历史主键
     * @return 结果
     */
    @Override
    public int deleteChargeStationStrategyHistoryById(Long id)
    {
        return chargeStationStrategyHistoryMapper.deleteChargeStationStrategyHistoryById(id);
    }
}
